router = require("@system.router")

export default {
    data: {
        title: 'World'
    },
    onInit: function () {
        print("==========onInit progress==========")
    },

    onReady: function () {
        print("==========onReady progress==========")
    },

    onShow: function () {
        print("==========onShow progress==========")
    },

    onHide: function () {
        print("==========onHide progress==========")
    },

    onDestroy: function () {
        print("==========onDestroy progress==========")
    },
    onPageRedirect: function (obj, x, y) {
        print("==========onclick==========")
        print(obj.attributes.url);
        print(x);
        print(y);
        router.push({
            uri: obj.attributes.url
        })
    },
    onReturn: function () {
        router.push({
            uri: "pages/dock/index"
        })
    }
}
